<template>
  <!-- 顶部通栏 -->
  <AppTopEnv />
  <!-- 头部组件 -->
  <AppHeader />
  <!-- 吸顶头部组件 -->
  <AppHeaderStickey />
  <!-- 内容容器 -->
  <div class="main">
    <router-view></router-view>
  </div>
  <!-- 底部组件 -->
  <AppFooter></AppFooter>
</template>

<script>
import AppTopEnv from '@/components/app-topnav.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import AppHeaderStickey from '@/components/app-header-stickey.vue'
import { useStore } from 'vuex'
export default {
  name: 'Layout',
  components: { AppTopEnv, AppHeader, AppFooter, AppHeaderStickey },
  setup() {
    const store = useStore()
    store.dispatch('category/getList')
    return {}
  }
}
</script>

<style lang="less" scoped>
.main {
  height: 100%;
}
</style>
